package DataModel.LayoutManager;

import java.util.LinkedList;

public class CRectanglesSortedList 
{
	/***************************************************/
	/****** C'tor  *************************************/
	/***************************************************/
	CRectanglesSortedList()
	{
	}
	
	
	/***************************************************/
	/****** Members ************************************/
	/***************************************************/
	private LinkedList<CRectangle> m_recsSortedList = new LinkedList<CRectangle>();
	
	
	/***************************************************/
	/****** Getters / Setters **************************/
	/***************************************************/
	public LinkedList<CRectangle> GetRecsSortedList() {
		return m_recsSortedList;
	}

	public void SetRecsSortedList(LinkedList<CRectangle> sortedList) {
		m_recsSortedList = sortedList;
	}
	
	/***************************************************/
	/****** Public methods  **************************/
	/***************************************************/
	/**
	 * Appends rectangle to the end of sorted list  
	 * @param rec - rectangle to add
	 */
	public void Add(CRectangle rec)
	{
		m_recsSortedList.addLast(rec);
	}
}
